package com.ruoyi.history.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 历史直播数据管理对象 live_history
 * 
 * @author ruoyi
 * @date 2023-04-07
 */
public class LiveHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private String id;

    /** 用户 */
    @Excel(name = "用户")
    private String userId;

    /** 直播号 */
    @Excel(name = "直播号")
    private String roomId;

    /** 直播标题 */
    @Excel(name = "直播标题")
    private String title;

    /** 开播时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开播时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 直播时长（分钟数） */
    @Excel(name = "直播时长", readConverterExp = "分=钟数")
    private String durationMinutes;

    /** 收到礼物数量 */
    @Excel(name = "收到礼物数量")
    private String giftCount;

    /** 收到礼物表ID */
    @Excel(name = "收到礼物表ID")
    private String giftTableId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setRoomId(String roomId) 
    {
        this.roomId = roomId;
    }

    public String getRoomId() 
    {
        return roomId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDurationMinutes(String durationMinutes) 
    {
        this.durationMinutes = durationMinutes;
    }

    public String getDurationMinutes() 
    {
        return durationMinutes;
    }
    public void setGiftCount(String giftCount) 
    {
        this.giftCount = giftCount;
    }

    public String getGiftCount() 
    {
        return giftCount;
    }
    public void setGiftTableId(String giftTableId) 
    {
        this.giftTableId = giftTableId;
    }

    public String getGiftTableId() 
    {
        return giftTableId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("roomId", getRoomId())
            .append("title", getTitle())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("durationMinutes", getDurationMinutes())
            .append("giftCount", getGiftCount())
            .append("giftTableId", getGiftTableId())
            .toString();
    }
}
